/* 个人中心页面整体样式 */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* 文本居中类 */
.text-center {
    text-align: center;
}

/* 个人信息卡片样式 */
.profile-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 个人信息表单样式 */
.profile-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 5px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4a90e2;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #4a90e2;
}

.form-group input::placeholder {
    color: #999;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 头像上传区域样式 */
.avatar-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.avatar-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.avatar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.avatar-upload-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.upload-button {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
}

.upload-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

#upload-avatar {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.2);
}

#upload-avatar:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* 提交按钮样式 */
.profile-form button[type="submit"] {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
    width: 100%;
}

.profile-form button[type="submit"]:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
    }
    
    .upload-button,
    #upload-avatar {
        width: 100%;
    }
}

/* 账户设置部分样式 */
.profile-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.settings-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.settings-item i:first-child {
    margin-right: 15px;
    font-size: 18px;
    color: #007bff;
}

.settings-item span {
    flex: 1;
    font-size: 16px;
}

.settings-item i.fa-chevron-right {
    color: #999;
    font-size: 14px;
}

/* 导航菜单样式 */
.profile-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.profile-nav-item {
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.profile-nav-item:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.profile-nav-item.active {
    color: #fff;
    background-color: #007bff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .profile-form {
        grid-template-columns: 1fr;
    }
    
    .profile-nav {
        flex-wrap: wrap;
    }
    
    .profile-nav-item {
        width: 100%;
        text-align: center;
    }
}

/* 按钮样式 */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* 提示信息样式 */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 左侧边栏样式 */
.profile-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info-card {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #007bff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.avatar-upload i {
    color: #fff;
    font-size: 16px;
}

.username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-level {
    color: #666;
    font-size: 14px;
}

.profile-nav {
    padding: 20px 0;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.profile-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-nav-item:hover,
.profile-nav-item.active {
    background: #f8f9fa;
    color: #007bff;
}

/* 右侧内容区样式 */
.profile-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 表单样式 */
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.avatar-section {
    width: 100%;
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.avatar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.upload-button {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
}

.upload-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

#upload-avatar {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
}

#upload-avatar:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* 安全设置样式 */
.security-items {
    max-width: 600px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.security-item:last-child {
    border-bottom: none;
}

.security-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.security-info p {
    color: #666;
    font-size: 14px;
}

/* 订单列表样式 */
.order-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.order-tab {
    padding: 8px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.order-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* 收藏列表样式 */
.favorite-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.favorite-tab {
    padding: 8px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.favorite-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        margin-bottom: 20px;
    }

    .profile-content {
        padding: 20px;
    }
} 